const express = require('express');
const app = express();

//添加数据库模板依赖
const models = require('../../db/models');
const {Op} = require("sequelize");//注入Op，用于多条件查询等等
const bodyParser = require('body-parser');
const path = require("path");
//时间格式设置所需要组件
//引入组件
app.use(bodyParser.urlencoded({extended:false}));
app.use(bodyParser.json());
app.use(express.static(path.join(__dirname,'public')));

